﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace ly.Web.QianTai
{
    public partial class newslist : System.Web.UI.Page
    {
        ly.BLL.UserInfo userBll = new BLL.UserInfo();
        ly.BLL.WorkInfo workBll = new BLL.WorkInfo();
        ly.Model.WorkInfo workModel = new Model.WorkInfo();
        ly.BLL.news newsBLL = new BLL.news();
        ly.Model.news newsModel = new Model.news();
        protected void Page_Load(object sender, EventArgs e)
        {
            BindData();
        }




        private void BindData()
        {
            //新闻列表
            //Common.BindRepeater(rptXinWen, 10);
            string strXinWenWhere = "";
            DataTable dtXinWen = newsBLL.GetList(strXinWenWhere).Tables[0];
            PagedDataSource psXinWen = new PagedDataSource();
            psXinWen.DataSource = dtXinWen.DefaultView;
            psXinWen.AllowPaging = true;
            rptXinWen.DataSource = psXinWen;
            rptXinWen.DataBind();
        }
    }
}